html {
    /* Always show the scrollbar. This makes pages consistent in width. */
    height: 100%;
    padding-bottom: 1px;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body, textarea, input {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
}

body {
    background-color: #FF9900;
    margin: 0 20%;
}

header {
    margin: 1em -33.33%;
    margin-bottom: 2em;
    padding: 0 40px;
}

header table {
    border-collapse: collapse;
    width: 100%;
}

header table td.center {
    text-align: center;
}

header table td.last {
    text-align: right;
}

header a {
    text-decoration: underline;
}

header a:hover {
    text-decoration: none;
}

header a.submit {
    font-weight: bold;
}

header h1 a {
    text-decoration: none;
}

body > footer {
    text-align: center;
    margin-top: 2em;
    font-weight: bold;
    font-size: 0.8em;
    opacity: 0.8;
}

p {
    margin: 0.5em 0;
}

h1, h2 {
    font-weight: bold;
}

h1 {
    font-size: 2em;
}

h2 {
    margin-bottom: 0.5em;
}

textarea {
    width: 100%;
    padding: 5px;
}

ul.errorlist {
    color: red;
}

.hidden {
    display: none;
}

tt {
    font-family: Menlo, monospace;
    font-size: 0.9em;
}

/*******************************/
/* Styles for main page alerts */
/*******************************/

body#main p#alert {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    font-size: 0.8em;
    background-color: yellow;
    margin: 0;
    padding: 0.5em 0;
    box-shadow: 0 0 2em 0 #333;
    opacity: 0.8;
}

/**********************/
/* Styles for /submit */
/**********************/

body#submit form {
    margin-top: 2em;
}

body#submit form div {
    margin-bottom: 1em;
}

body#submit form span {
    color: gray;
}

body#submit #content a {
    font-weight: bold;
}

body#submit #content {
    margin: 0 20%;
    margin-bottom: 2em;
}

/*******************/
/* Styles for /help */
/*******************/

body#faq #content {
    line-height: 1.5;
    padding-bottom: 3em;
}

body#faq h3 {
    margin-top: 2em;
    font-weight: bold;
}

body#faq dt {
    font-style: italic;
    margin-top: 1em;
}

body#faq ol {
    list-style-type: decimal;
    margin-left: 2em;
}

body#faq #content a {
    text-decoration: underline;
}

body#faq #content a:hover {
    text-decoration: none;
}

/***********************/
/* Styles for /contact */
/***********************/

body#contact h2 {
    margin-top: 2em;
    font-weight: bold;
}

body#contact form span {
    color: gray;
    font-weight: normal;
}

body#contact p {
    line-height: 1.5;
}

body#contact {
    padding-bottom: 3em;
}

/**********************/
/* Styles for details */
/**********************/

div.close {
    background: black;
    text-align: right;
    cursor: pointer;
    padding-right: 5px;
}

div.close img {
    opacity: 0.3;
}

div.close:hover img {
    opacity: 0.7;
}

table#photo, table#actions {
    width: 100%;
}

table#photo td, table#actions td {
    vertical-align: top;
}

table#photo td {
    background: black;
}

table#photo td.prev, table#photo td.next {
    vertical-align: middle;
    color: #333;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    padding: 0 5px;
}

table#photo td.prev:hover, table#photo td.next:hover {
    color: white;
}

table#photo td.photo {
    text-align: center;
}

table#actions td {
    padding: 1em 10px;
    font-size: 0.8em;
}

table#actions input {
    font-size: 1em;
}

table#actions textarea {
    font-size: 1em;
}

table#actions td.left {
    width: 200px;
}

table#actions .textarea_wrapper {
    padding: 0 7px;
}

table#actions textarea {
    width: 100%;
    padding: 5px;
    margin-left: -7px;
}

table#actions label {
    color: gray;
}

table#actions .error {
    color: red;
}

table#actions article footer {
    margin-top: 2px;
}

table#actions article footer,
table#actions article footer a {
    color: gray;
}

table#actions article footer a {
    cursor: pointer;
}

table#actions section.comments {
    background: #eee;
    padding: 5px;
    margin: 1em 10px;
    margin-bottom: 0;
}

table#actions section.comments article + article {
    margin-top: 1em;
}

table#actions section.comments .replaceme {
    margin-bottom: 1em;
}

table#actions .author {
    font-weight: bold;
}

/**********************/
/* Styles for /search */
/**********************/

body#search #results tr td {
    vertical-align: top;
    padding: 1em 5px;
}

body#search #results table tr td {
    padding: 0 5px;
}

body#search #results img {
    border-bottom: 2px solid transparent;
}

body#search #results a:hover img {
    border-bottom: 2px solid #dd6e1c;
}

body#search #results table td:first-child {
    text-align: right;
    font-weight: bold;
    width: 10em;
}